package com.czy.ekp.doc;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletResponse;


@Controller
@RequestMapping(("/doc"))
public class DocController {

    @Autowired
    DocService docService;

    @GetMapping("/toWord/{id}")
    public void toWord(@PathVariable("id") String id, HttpServletResponse response){

        docService.toWord(id, response);

    }




}
